home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / thrust_2.swf / scripts / DefineSprite_103 / frame_15 / DoAction.as
Text File  |  2012-01-07  |  584b  |  23 lines

  1. if(_root.Lives > 0)
  2. {
  3.    _root.lifebar.nextFrame();
  4.    _root.fuel = _root.fuellevel;
  5.    _root.ship._x = _root.land.spad._x + 277;
  6.    _root.ship._y = _root.land.spad._y + 205;
  7.    _root.ship.dead = false;
  8.    _root.ship.rotate = 0;
  9.    _root.ship.landed = true;
  10.    _root.ship.keydownright = false;
  11.    _root.ship.keydownleft = false;
  12.    _root.ship.keydownup = false;
  13.    _root.ship.keydowndown = false;
  14.    _root.ship.keydownfire = false;
  15.    _root.ship.gotoAndStop(1);
  16. }
  17. else if(_root.Lives == 0)
  18. {
  19.    _root.ranking = "Bad";
  20.    _root.gotoAndPlay("Gameover");
  21. }
  22. stop();
  23.